package main

import (
	"fmt"
	"os/exec"
)

func main() {
	execDemo01()
}

func execDemo01() {
	cmd := exec.Command("dir")
	output, err := cmd.CombinedOutput()
	fmt.Println(output)
	if err != nil {
		fmt.Println("执行有误:", err)
	}
}
